package clazz.extendstest;


import java.util.logging.Logger;

/**
 * @Description：
 * @Author：LiDong
 * @Create：2021/1/7
 * @Version：1.0.0
 */
public class People {

    private static final Logger logger = Logger.getLogger(String.valueOf(People.class));

    private static final String PEOPLE = "people";

    /**
     * 私有成员变量
     */
    private String type;

    private int pno;

    private String flag = "people";

    /**
     * 公共的成员变量
     */
    public String name;

    public People() {

    }

    /**
     * 类方法
     */
    static {
        logger.info("People的静态代码块"+PEOPLE);
    }

    {
        logger.info("我是People的代码块");
    }

    public People(String type, int pno, String name) {
        this.type = type;
        this.pno = pno;
        this.name = name;
    }

    /**
     * 成员方法
     */
    public void sayWord(){
        System.out.println("people say hellow");
    }

    public void showFlag(){
        String flag = "Test People!";
        this.flag = "TestTwo People!";
        logger.info(flag);
        logger.info(this.flag);
    }



}
